package com.hand.wfive.entity.event;

/**
 * 消息类型tag，在{@link EventTagConfig}中配置
 */
public class EventBusBean {

    private int tag;
    private int position;
    private Object object1;
    private Object object2;

    public EventBusBean(int tag) {
        this.tag = tag;
    }

    public EventBusBean(int tag, int position, Object object1) {
        this.tag = tag;
        this.position = position;
        this.object1 = object1;
    }

    public EventBusBean(int tag, int position, Object object1, Object object2) {
        this.tag = tag;
        this.position = position;
        this.object1 = object1;
        this.object2 = object2;
    }

    public EventBusBean(int tag, int position) {
        this.tag = tag;
        this.position = position;
    }

    public EventBusBean(int tag, Object object1) {
        this.tag = tag;
        this.object1 = object1;
    }

    public EventBusBean(int tag, Object object1, Object object2) {
        this.tag = tag;
        this.object1 = object1;
        this.object2 = object2;
    }

    public int getTag() {
        return tag;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public Object getObject1() {
        return object1;
    }

    public Object getObject2() {
        return object2;
    }
}
